// 递归过滤角色的菜单
const genAuthList = ((tree) => {
  return tree.filter(item => {
    if (item.children && item.children.length) {
      item.children = genAuthList(item.children)
    }
    return item.meta.premiList && item.meta.premiList.includes('2')
  })
});